﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace telefonia
{
    public partial class ClientsView : Form
    {

        public ClientsView()
        {
            InitializeComponent();
        }

        private void ClientsView_Load(object sender, EventArgs e)
        {
            this.dgClients.DataSource = DataBase.GetClients();
        }

        private void bAgregar_Click(object sender, EventArgs e)
        {
            Cliente cli = new Cliente();
            cli.ShowDialog();
            this.dgClients.DataSource = DataBase.GetClients();
        }
    }
}
